<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibDriver ADS1118: example/driver_ads1118_basic.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="doxygen.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibDriver ADS1118
   &#160;<span id="projectnumber">1.0.0</span>
   </div>
   <div id="projectbrief">ADS1118 full-featured driver</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('driver__ads1118__basic_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">driver_ads1118_basic.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="driver__ads1118__basic_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160; </div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#ifndef DRIVER_ADS1118_BASIC_H</span></div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#define DRIVER_ADS1118_BASIC_H</span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160; </div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="driver__ads1118__interface_8h.html">driver_ads1118_interface.h</a>&quot;</span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160; </div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span>{</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160; </div>
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="group__ads1118__example__driver.html#ga2be8a47aef9bdae0b605268b44f6afe7">   56</a></span>&#160;<span class="preprocessor">#define ADS1118_BASIC_DEFAULT_RANGE               ADS1118_RANGE_6P144V        </span></div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="group__ads1118__example__driver.html#ga41367422089cd9a222212c1046a3ecff">   57</a></span>&#160;<span class="preprocessor">#define ADS1118_BASIC_DEFAULT_RATE                ADS1118_RATE_128SPS         </span></div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="group__ads1118__example__driver.html#ga6bd3b85f830a37d120b70e2b60dacca2">   58</a></span>&#160;<span class="preprocessor">#define ADS1118_BASIC_DEFAULT_DOUT_PULL_UP        ADS1118_BOOL_FALSE          </span></div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;uint8_t <a class="code" href="group__ads1118__example__driver.html#ga7c4e0a15069bde8b4d4e4f99e6f2c35c">ads1118_basic_init</a>(<a class="code" href="group__ads1118__basic__driver.html#ga6c9f083f2c394319c5a0ccfcad8f006d">ads1118_mode_t</a> mode, <a class="code" href="group__ads1118__basic__driver.html#gabafaa3825a93ff6b91ee46b52fd87985">ads1118_channel_t</a> channel);</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160; </div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;uint8_t <a class="code" href="group__ads1118__example__driver.html#ga7c0d9e5fe70f51f953229d203980ffcd">ads1118_basic_deinit</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160; </div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;uint8_t <a class="code" href="group__ads1118__example__driver.html#ga6ea42675fee5156a2a4d14273e2f6931">ads1118_basic_read</a>(<span class="keywordtype">float</span> *s);</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160; </div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;uint8_t <a class="code" href="group__ads1118__example__driver.html#ga751238b2e8b8f72fe93c478ece7086b1">ads1118_basic_read_temperature</a>(<span class="keywordtype">float</span> *deg);</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160; </div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;}</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160; </div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="adriver__ads1118__interface_8h_html"><div class="ttname"><a href="driver__ads1118__interface_8h.html">driver_ads1118_interface.h</a></div><div class="ttdoc">driver ads1118 interface header file</div></div>
<div class="ttc" id="agroup__ads1118__basic__driver_html_ga6c9f083f2c394319c5a0ccfcad8f006d"><div class="ttname"><a href="group__ads1118__basic__driver.html#ga6c9f083f2c394319c5a0ccfcad8f006d">ads1118_mode_t</a></div><div class="ttdeci">ads1118_mode_t</div><div class="ttdoc">ads1118 mode enumeration definition</div><div class="ttdef"><b>Definition:</b> <a href="driver__ads1118_8h_source.html#l00114">driver_ads1118.h:115</a></div></div>
<div class="ttc" id="agroup__ads1118__basic__driver_html_gabafaa3825a93ff6b91ee46b52fd87985"><div class="ttname"><a href="group__ads1118__basic__driver.html#gabafaa3825a93ff6b91ee46b52fd87985">ads1118_channel_t</a></div><div class="ttdeci">ads1118_channel_t</div><div class="ttdoc">ads1118 channel enumeration definition</div><div class="ttdef"><b>Definition:</b> <a href="driver__ads1118_8h_source.html#l00099">driver_ads1118.h:100</a></div></div>
<div class="ttc" id="agroup__ads1118__example__driver_html_ga6ea42675fee5156a2a4d14273e2f6931"><div class="ttname"><a href="group__ads1118__example__driver.html#ga6ea42675fee5156a2a4d14273e2f6931">ads1118_basic_read</a></div><div class="ttdeci">uint8_t ads1118_basic_read(float *s)</div><div class="ttdoc">basic example read</div><div class="ttdef"><b>Definition:</b> <a href="driver__ads1118__basic_8c_source.html#l00142">driver_ads1118_basic.c:142</a></div></div>
<div class="ttc" id="agroup__ads1118__example__driver_html_ga751238b2e8b8f72fe93c478ece7086b1"><div class="ttname"><a href="group__ads1118__example__driver.html#ga751238b2e8b8f72fe93c478ece7086b1">ads1118_basic_read_temperature</a></div><div class="ttdeci">uint8_t ads1118_basic_read_temperature(float *deg)</div><div class="ttdoc">basic example read</div><div class="ttdef"><b>Definition:</b> <a href="driver__ads1118__basic_8c_source.html#l00163">driver_ads1118_basic.c:163</a></div></div>
<div class="ttc" id="agroup__ads1118__example__driver_html_ga7c0d9e5fe70f51f953229d203980ffcd"><div class="ttname"><a href="group__ads1118__example__driver.html#ga7c0d9e5fe70f51f953229d203980ffcd">ads1118_basic_deinit</a></div><div class="ttdeci">uint8_t ads1118_basic_deinit(void)</div><div class="ttdoc">basic example deinit</div><div class="ttdef"><b>Definition:</b> <a href="driver__ads1118__basic_8c_source.html#l00189">driver_ads1118_basic.c:189</a></div></div>
<div class="ttc" id="agroup__ads1118__example__driver_html_ga7c4e0a15069bde8b4d4e4f99e6f2c35c"><div class="ttname"><a href="group__ads1118__example__driver.html#ga7c4e0a15069bde8b4d4e4f99e6f2c35c">ads1118_basic_init</a></div><div class="ttdeci">uint8_t ads1118_basic_init(ads1118_mode_t mode, ads1118_channel_t channel)</div><div class="ttdoc">basic example init</div><div class="ttdef"><b>Definition:</b> <a href="driver__ads1118__basic_8c_source.html#l00050">driver_ads1118_basic.c:50</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_cfafba98a580ce4b62f8a6fa96d7cbb0.html">example</a></li><li class="navelem"><a class="el" href="driver__ads1118__basic_8h.html">driver_ads1118_basic.h</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
